﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminManager.Master" AutoEventWireup="true" CodeBehind="AdminManagement.aspx.cs" Inherits="HospitalSystem.Admin.AdminManagement" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div align="center">
 <asp:Panel ID="Panel1" Width="1000" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
           
           
            <div>
            Users waiting for approval
            <br/>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
                    <Columns>
                        <asp:BoundField DataField="Staff_id" HeaderText="รหัสเจ้าหน้าที่" />
                        <asp:BoundField DataField="Firstname" HeaderText="ชื่อ" />
                        <asp:BoundField DataField="Lastname" HeaderText="นามสกุล" />
                        <asp:BoundField DataField="Username" HeaderText="Username" />
                        <asp:BoundField DataField="Email" HeaderText="Email" />
                        <asp:BoundField DataField="Activated" HeaderText="สถานะการลงทะเบียน" />
                        <asp:TemplateField HeaderText="Approve">
                        <ItemTemplate>
                            <asp:RadioButtonList ID="RBL" runat="server" RepeatDirection="Vertical" Enabled="true">
                                    <asp:ListItem Value="0" Text = "รอการอนุญาต" Selected="True"></asp:ListItem>
                                    <asp:ListItem Value="1" Text = "อนุญาต"></asp:ListItem>
                                    <asp:ListItem Value="2" Text = "ไม่อนุญาต"></asp:ListItem>
                            </asp:RadioButtonList>
                        </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <asp:Button ID="ApproveButton" runat="server" onclick="ApproveButton_Click" 
                    Text="Submit" />
                <br />
                <br />
                Other Users Status<asp:GridView ID="GridView2" runat="server">
                </asp:GridView>
                <br />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
     </asp:Panel>
     </div>
</asp:Content>
